<?php
function phui_init(){
	/* Work out how big the terminal is */
	$sys_term_temp=explode(' ',trim(exec('stty size')));
	$sys_term_row=$sys_term_temp[0];
	$sys_term_col=$sys_term_temp[1];
	unset($sys_term_temp);

	/* Set Screen Pointer up */
	$term_row=0;
	$term_col=0;

	/* Load this all into a nice array */
	$term[0]=$sys_term_row;
	$term[1]=$sys_term_col;
	$term[2]=$term_row;
	$term[3]=$term_col;

	/* Clear the useless vars */
	unset($sys_term_row);
	unset($sys_term_col);
	unset($term_row);
	unset($term_col);

	/* And Return! */
	return($term);
}
?>
